@extends('admin/layout')

@section('content')
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                用户收藏列表
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="#">users collection</a></li>
            </ol>

        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-md-12" style="width: 100%;">
                    <div class="box">
                        <div class="box-header with-border">
                            <h3 class="box-title">收藏</h3>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body">
                            <table class="table table-bordered"  style=" text-align: center;">
                                <tr>
                                    @foreach($data['searchtype'] as $value)
                                        <th style="width: 50px; text-align:center">{{ $value['searchtype'] }}</th>
                                    @endforeach
                                        <th style="width: 50px; text-align:center">图片</th>
                                </tr>
                                @foreach($list['data'] as $v)
                                    <tr>
                                        <td>{{ $v['id'] }}</td>
                                        <td>{{ $v['create_time']}}</td>
                                        <td>{{ $v['username']}}</td>
                                        <td>{{ $v['artist']}}</td>
                                        <td>{{ config('type.space_type')[$v['space']] }}</td>
                                        <td>{{ config('type.style_type')[$v['style']] }}</td>
                                        <td>{{ config('type.theme_type')[$v['theme']] }}</td>
                                        <td>{{ config('type.series_type')[$v['series']] }}</td>
                                        <td>{{ config('type.frame_type')[$v['frame']] }}</td>
                                        <td>{{ config('type.symbolic_type')[$v['symbolic']] }}</td>
                                        {{--<td>{{ $v['space']}}</td>--}}
                                        {{--<td>{{ $v['style']}}</td>--}}
                                        {{--<td>{{ $v['theme']}}</td>--}}
                                        {{--<td>{{ $v['series']}}</td>--}}
                                        {{--<td>{{ $v['frame']}}</td>--}}
                                        {{--<td>{{ $v['symbolic']}}</td>--}}
                                        <td>{{ $v['num_c']}}</td>
                                        <td>{{ $v['num_d']}}</td>
                                        <td><img src="{{ asset('/productImg/'.$v["picture"])}}" alt="无图片" width="93" height="117" /></td>
                                    </tr>
                                @endforeach
                            </table>
                        </div>
                        <div calss="pages">
                            {{ $page->links() }}
                        </div>
                        <!-- /.box -->
                    </div>
                    <!-- /.row -->
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
@stop